package user;

import java.util.*;

import edu.cmu.javadb.BaseRecord;
import edu.cmu.javadb.VCollection;
import edu.cmu.javadb.annotations.*;

@Record({})
public class Node extends BaseRecord {
	private String name;
	
		
	private Collection<Node> children = new ArrayList<Node>();

	public Node(String name) {
		this.name = name;
	}

	public Collection<Node> getChildren() {
		return children;
	}

	public void setChildren(Collection<Node> children) {
		this.children = children;
	}
	
	public void addChildren(Node child) {
		this.children.add(child);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
